package com.atguigu.guli.service.edu.entity.query;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/*
    select *
    from edu_course
    where subject_parent_id = xx
    and  subject_id = xxx
    -- order by buy_count  desc/asc
    -- order by publish_time desc/asc
    -- order by price desc/asc
 */
@Data
public class ApiCourseQuery {
    @ApiModelProperty(value = "课程专业ID")
    private String subjectId;

    @ApiModelProperty(value = "课程专业父级ID")
    private String subjectParentId;
    @ApiModelProperty(value = "排序字段： buy_count、publish_time、price ")
    private String orderByColmun;//代表要排序的列名
    @ApiModelProperty(value = "排序方式：0 默认升序排序 ， 1降序排序")
    private Integer type ; //代表排序方式
}
